# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=font-adobe-source-code-pro
pkgver=2.038
_italic_ver=1.058
_var_ver=1.018
pkgrel=0
pkgdesc="Monospaced font family for user interface and coding environments"
url="https://adobe-fonts.github.io/source-code-pro/"
arch="noarch"
license="OFL-1.1"
depends="font-util"
options="!check"
source="https://github.com/adobe-fonts/source-code-pro/archive/refs/tags/${pkgver}R-ro/${_italic_ver}R-it/${_var_ver}R-VAR.tar.gz"
builddir="$srcdir/source-code-pro-${pkgver}R-ro-${_italic_ver}R-it-${_var_ver}R-VAR"

package() {
	for x in "$builddir"/OTF/*.otf; do
		install -d "$pkgdir/usr/share/fonts/OTF/"
		install -m644 "$x" "$pkgdir/usr/share/fonts/OTF"
	done
}

sha512sums="
96981af2a470027a372ab8a02265d34a6b2a810c4cca0b498b01e613019a04c9760d95e21fb740af2c7fff076098bb36f5c282bf9b8f1875eed72ed70e4b3ac9  1.018R-VAR.tar.gz
"
